/**
 * @Title: integrityMedical_service.js
 * @Description: 结算首页service
 * Copyright: Copyright (c) 2014 
 * Company:中国平安
 *
 * @Project HIMS-FWA
 * @author ex-xieyuwen001
 * @date 2014年10月29日 下午14:36:25
 * @version V1.0
 */
;
(function(){
	'use strict';
	
	var app = angular.module('fwa.services');
	app.service('EvaluationOrgService',['$http','BaseURL', function($http, baseUrl){
		var debug = false,
		serv = this;
		
		/**获取定点机构诚信考评列表**/
  		serv.getEvaluationOrgList = function(jsonObj){
                return $http({
                    url:baseUrl + 'evaluation/getEvaluationOrgList.do',
                    method:'GET',
                    params:jsonObj
                });
            }
		
  		/**
  		 * 获取考评得分名称集合
  		 */
  		serv.getEvaluationName = function(jsonObj){
  			return $http({
  				url:baseUrl + 'evaluation/getEvaluationName.do',
  				method: 'GET',
  				params:jsonObj
  			});
  		}
  		
  		
		
		/**医疗机构**/
        serv.initMedicalOrgInfoList = function(){
			if(!serv.medicalOrgInfoList){
				$http({
			    	 method: "get",
			    	 url:baseUrl+'community/getNewMedicalOrgInfoList.do'
				}).success(function(response, status, headers, config){
					serv.medicalOrgInfoList = response.medicalOrgList;
				});
			}
		}
        
        /**医疗机构 审核批量提交**/
        serv.reviewBatchSumit = function(data) {
        	return $http({
  				url:baseUrl + 'orgReview/reviewBatchSumit.do',
  				method: 'POST',
  				data: data
  			});
		}
        
        /**医疗机构 审批批量提交**/
        serv.approveBatchSumit = function(data) {
        	return $http({
  				url:baseUrl + 'orgApprove/approveBatchSumit.do',
  				method: 'POST',
  				data: data
  			});
		}
		
	}]);
	
})();